Make newFromID() inherit correctly (ImagePage/CategoryPage...) by using Late Static...
[lhc/web/wiklou.git] / includes / Article.php
index 105425a..5065280 100644 (file)
@@ -60,7 +60,7 @@ class Article {
         */
        public static function newFromID( $id ) {
                $t = Title::newFromID( $id );
-               return $t == null ? null : new Article( $t );
+               return $t == null ? null : new static( $t );
        }
 
        /**